@extends('Layout/layout')
@section('yemian')
<style type="text/css">
	.e_css {
    background: url(/public/images/lift_li_02_02.gif) no-repeat;
    width: 179px;
    font-weight: bold;
    color: #000;
    z-index: 1;
	}
</style>
<script type="text/javascript">
	$(document).ready(function(){ 
	 
		document.getElementById("contract").className = "e_css";
	}); 
</script>
<body class="mian_bj">
<div class="mian_top_01">
<div class="mian_top_r">
</div>
<div class="mian_top_l">
</div>
<div class="mian_top_c">
<ul>
<li><a href="{{ url('/Lzk/Contract') }}"><p>企业合同</p></a></li>
<li><a href="{{ url('/Lzk/PersonContract') }}"><p>人事合同</p></a></li>
</ul>
</div>
<div class="mian_b">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mian_b_bg_xz">
<tr>
<td width="5%" class="mian_b_bg_lm">&nbsp;

</td>
<td colspan="3" class="mian_b_bg_lm">
合同查看
</td>
</tr>
<tr>
<td>&nbsp;

</td>
<td colspan="4" align="left">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">

<tr>
<td width="73" align="right" valign="top">
合同编号：
</td>
<td valign="top">
{{$res['Number']}}
</td>
</tr>

<tr>
<td width="73" align="right" valign="top">
合同名称：
</td>
<td valign="top">
{{$res['Name']}}
</td>
</tr>

<tr>
<td width="73" align="right" valign="top">
合同类型：
</td>
<td valign="top">
{{str_replace([1,2,3,4,5,6],['行政合同','经济合同','自营合同','联营合同','广告刊发合同','服务器代管合同'],$res['Class'])}}
</td>
</tr>

<tr>
<td width="73" align="right" valign="top">
合同内容：
</td>
<td valign="top">
{{$res['Content']}}
</td>
</tr>

<tr>
<td width="73" align="right" valign="top">
代签日期：
</td>
<td valign="top">
{{$res['Time']}}
</td>
</tr>

<tr>
<td width="73" align="right" valign="top">
我方签约人：
</td>
<td valign="top">
{{$res['PersonName']}}
</td>
</tr>

<tr>
<td width="73" align="right" valign="top">
对方单位：
</td>
<td valign="top">
{{$res['Company']}}
</td>
</tr>

<tr>
<td width="73" align="right" valign="top">
审批状态：
</td>
<td valign="top">
{{str_replace([1,2],['未审批','已审批'],$res['State'])}}
</td>
</tr>
<form action="{{ url('/Lzk/Contract/state') }}" method="post">

@if($res['State'] == 1)
<tr>
<td width="73" align="right" valign="top">
是否审批：
</td>
<td valign="top">
<td>
<select id="Select1" name="State" style="margin-left:-930px;width: 80px;height:24px;">
<option value="2">同意</option>
<option value="1">不同意</option>
</select>
</td>
</td>
</tr>
@else
<tr>
	<td>&nbsp;&nbsp;&nbsp;已同意
	</td>
</tr>
@endif


<input type="hidden" name="id" value="{{$res['id']}}">
 {{ csrf_field() }}

<tr>
<td width="73" align="right" valign="top">
</td>
@if($res['State'] == 1)
<td valign="top">
<input style="margin-top:10px;;width:80px;height:22px;"type="submit" value="确定">
</td>
@else
@endif
</tr>


</form>

</table>
</td>
<td>&nbsp;
</td>
</tr>
<tr>
<td>&nbsp;
</td>
<td>&nbsp;
</td>


<td>
<div align="center">
<img src="/public/images/bnt_05.gif" alt="" width="80" height="22" onclick="javascript:window.history.go(-1);">
</div>
</td>


<td>&nbsp;
</td>
</tr>
</table>
</div>
</div>
</body>
@endsection
